﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    public string ServerData { get; set; }

    protected void Page_Load(object sender, EventArgs e)
    {
        var l = new List<Account>();
        l.Add(new Account() { Name = "Juan" });
        l.Add(new Account() { Name = "Maria" });

        var ser = new JavaScriptSerializer();
        this.ServerData = ser.Serialize(l);

    }
    
}